package com.ruoyi.ai.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@AllArgsConstructor
@Getter
public enum MpUserStatus {
    SUB(0,"关注"),
    UNSUB(1, "取消关注"),
    ;
    private Integer status;
    private String desc;

    public static MpUserStatus getByType(Integer status){
        return Arrays.stream(values()).filter(c-> c.getStatus().equals(status)).findFirst().orElse(null);
    }
}
